<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head lang="zh-cn">
    <meta charset="<?php $CfgPara->database["charset"] ?>"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Sneaker Custom</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" type="text/css" href="/css/amazeui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/app.css"/>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/amazeui.min.js"></script>
    <script type="text/javascript" src="/js/app.js"></script>
</head>

<body>
<!-- 页头 -->
<header id="page-header" class="app-main-backcolor" style="height: 40px"
        data-back-href="<?php echo $CfgPara->httproot ?>">
    <div class="am-fl">
        <h2 style="margin: 0px; height: 40px; padding-top: 5px; padding-left: 5px">
            <a href="<?php echo $CfgPara->httproot ?>" class="app-main-backcolor">
                <i class="am-header-icon am-icon-angle-left"></i>
            </a>
            <span>Sneaker Custom 鞋主秀</span>
        </h2>
    </div>
</header>
<?php
$tittleText = $workMsg->Name;
require("{$CfgPara->root}/view/tittle_back_bar.app.v.php");
?>
<div id="shoe_show_edit_div" data-work-id="<?= $workMsg->Id ?>" data-show-id="0">
    <div id="shoe_show_login_div">
        <?php
        if (!isset($_SESSION['user_id'])) //请求登陆
        {
            require("{$CfgPara->root}/controller/user_login.c.php");
        }
        ?>
    </div>
    <div id="shoe_show_edit_form"
         class="app-toolbar-content" <?php if (!isset($_SESSION['user_id'])) echo 'style="display:none"' ?>>
        <!-- 图片内容 -->
        <iframe id="img_edit_frame" src="<?php echo $shoeShowImgPage ?>" style="height:310px;width:100%"></iframe>
        <div class="am-form">
            <div class="am-form-group">
                <textarea rows="4" id="shoe_show_edit_content_introd"
                          placeholder="请输入对作品的评价"><?php if (isset($showMsg)) echo $showMsg->Introd; ?></textarea>
            </div>
        </div>
        <div class="am-btn-group am-fr">
            <a class="am-btn am-btn-default" role="button" onclick="shoe_show_save(0)">存为草稿</a>
            <a class="am-btn am-btn-primary" role="button" onclick="shoe_show_save(1)">发布</a>
        </div>
    </div>
</div>
<!-- 全局提示框内容 -->
<div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">Sneaker Custom</div>
        <div class="am-modal-bd">
            <span id="my-alert-text"></span>
        </div>
        <div class="am-modal-footer">
            <span class="am-modal-btn">确定</span>
        </div>
    </div>
</div>
<!-- 全局等待模式窗体内容 -->
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-loading">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">Sneaker Custom</div>
        <div class="am-modal-bd">
            <span id="my-loading-text" class="am-icon-spinner am-icon-spin"></span>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    $("#img_edit_frame").load(function () {
        setTimeout(edit_frame_set_height, 300, $(this));
    });
    function edit_frame_set_height(frame) {
        frame.height(frame.contents().height());
        //toolbar_ini("shoe_show_edit_div", "shoe_show_toolbar");
    }
</script>